/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ShoeCabinetSterilizer {
    static categoryCode = '010040020';

    static categoryName = '鞋柜灭菌器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ShoeCabinetSterilizer.categoryCode;
    }

    get categoryName() {
        return ShoeCabinetSterilizer.categoryName;
    }

    getDryingSwitch(params) {
        return command({
            method: 'getDryingSwitch',
            methodId: 'pDrhJ2mk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'phEqdcoo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vFcGrq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getUVSwitch(params) {
        return command({
            method: 'getUVSwitch',
            methodId: 'pGoxs3Tb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pgh0v891',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDryingSwitch(params) {
        return command({
            method: 'setDryingSwitch',
            methodId: 'pUPQ5SeG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'pZgR0VDx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAXwL73',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setUVSwitch(params) {
        return command({
            method: 'setUVSwitch',
            methodId: 'peH3AZOV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ShoeCabinetSterilizer;
